package com.gitee.ed.pattern.proxy;

/**
 * @author hongda.li
 */
public class ITestImpl implements ITest {
    @Override
    public void methodWithoutReturn() {
        System.out.println("This is normal invoking without return");
    }

    @Override
    public Object methodWithReturn(Integer error) {
        System.out.println("This is normal invoking with return");
        if (error != null) {
            throw new RuntimeException(error.toString());
        }
        return "success";
    }
}
